package com.ruoyi.PersonalPayments.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.PersonalPayments.mapper.PersonalPaymentsMapper;
import com.ruoyi.PersonalPayments.domain.PersonalPayments;
import com.ruoyi.PersonalPayments.service.IPersonalPaymentsService;

/**
 * 个人电费信息Service业务层处理
 * 
 * @author 智电未来
 * @date 2024-07-12
 */
@Service
public class PersonalPaymentsServiceImpl implements IPersonalPaymentsService 
{
    @Autowired
    private PersonalPaymentsMapper personalPaymentsMapper;

    /**
     * 查询个人电费信息
     * 
     * @param id 个人电费信息主键
     * @return 个人电费信息
     */
    @Override
    public PersonalPayments selectPersonalPaymentsById(Long id)
    {
        return personalPaymentsMapper.selectPersonalPaymentsById(id);
    }

    /**
     * 查询个人电费信息列表
     * 
     * @param personalPayments 个人电费信息
     * @return 个人电费信息
     */
    @Override
    public List<PersonalPayments> selectPersonalPaymentsList(PersonalPayments personalPayments)
    {
        return personalPaymentsMapper.selectPersonalPaymentsList(personalPayments);
    }

    /**
     * 新增个人电费信息
     * 
     * @param personalPayments 个人电费信息
     * @return 结果
     */
    @Override
    public int insertPersonalPayments(PersonalPayments personalPayments)
    {
        return personalPaymentsMapper.insertPersonalPayments(personalPayments);
    }

    /**
     * 修改个人电费信息
     * 
     * @param personalPayments 个人电费信息
     * @return 结果
     */
    @Override
    public int updatePersonalPayments(PersonalPayments personalPayments)
    {
        return personalPaymentsMapper.updatePersonalPayments(personalPayments);
    }

    /**
     * 批量删除个人电费信息
     * 
     * @param ids 需要删除的个人电费信息主键
     * @return 结果
     */
    @Override
    public int deletePersonalPaymentsByIds(Long[] ids)
    {
        return personalPaymentsMapper.deletePersonalPaymentsByIds(ids);
    }

    /**
     * 删除个人电费信息信息
     * 
     * @param id 个人电费信息主键
     * @return 结果
     */
    @Override
    public int deletePersonalPaymentsById(Long id)
    {
        return personalPaymentsMapper.deletePersonalPaymentsById(id);
    }
}
